package com.it.system.gatewayservice.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/ping")
    public Mono<Map<String, String>> ping() {
        Map<String, String> response = new HashMap<>();
        response.put("message", "Gateway is working!");
        response.put("timestamp", String.valueOf(System.currentTimeMillis()));
        return Mono.just(response);
    }
} 